home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
CUJ9202.ARJ
/
1002109B
< prev
next >
Wrap
Text File
|
1992-06-02
|
310b
|
14 lines
int index;
#define SIZE_OUT_STRINGS 4
char *out_strings[SIZE_OUT_STRINGS]
= {"zero", "one", "two", "lots"};
if (x < 0 || x >= SIZE_OUT_STRINGS - 1)
index = SIZE_OUT_STRINGS - 1;
else
index = x;
printf ("The value is '%s'\n", out_strings[index]);